package ModelLayer;



import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;

/**
 * The test class ItemTester.
 *
 * @author  (your name)
 * @version (a version number or a date)
 */
public class ItemTester
{
    /**
     * Default constructor for test class ItemTester
     */
    public ItemTester()
    {
    }

    /**
     * Sets up the test fixture.
     *
     * Called before every test case method.
     */
    @Before
    public void setUp()
    {
    }

    /**
     * Tears down the test fixture.
     *
     * Called after every test case method.
     */
    @After
    public void tearDown()
    {
    }

    @Test
    public void createItem()
    {
        ModelLayer.Item item1 = new ModelLayer.Item("1234", "skovl mark 2", "fin skovl", 99.95, 49.95, "23A", 5, 10, 30, 15);
    }
    
    @Test
    public void addItem()
    {
         ModelLayer.Item item1 = new ModelLayer.Item("1234", "skovl mark 2", "fin skovl", 99.95, 49.95, "23A", 5, 10, 30, 15);
         ItemContainer itemContainer = ModelLayer.ItemContainer.getInstance();
         itemContainer.addItem(item1);
    }
    
    @Test
    public void findItem()
    {
         ModelLayer.Item item1 = new ModelLayer.Item("1234", "skovl mark 2", "fin skovl", 99.95, 49.95, "23A", 5, 10, 30, 15);
         ItemContainer itemContainer = ModelLayer.ItemContainer.getInstance();
         itemContainer.addItem(item1);
         Item item = itemContainer.findItem("1234");
    }
    
    
}

